
<?php
session_start();
include __DIR__ . "/../vendor/Push/lib/Pusher.php";
include __DIR__ . "/../vendor/PHPMailer/PHPMailerAutoload.php";


error_reporting(0)	;
date_default_timezone_set('Asia/Hong_Kong');
$CURR_DATE = date('h:i:s A, d F Y ');
define('CURR_DATE', $CURR_DATE);


// SETTINGS FOR EMAIL

define("BH_EMAIL","nikita.flss@gmail.com");
define("BH_PASSWORD","fl$$@Nikita");
define("PUSHER_APP_ID","108039");
define("PUSHER_APP_KEY","f0b75c2fe8573d7ad3d2");
define("PUSHER_APP_SECRET","b31f3e5acdb7c628e52e");
define("DEFAULT_COVER", "https://res.cloudinary.com/flss/image/upload/v1424562855/default-cover_2_utdyvu.png");
define('DEFAULT_LOGO',"https://res.cloudinary.com/flss/image/upload/v1424526718/company_logo_qfi8pb.png");
define("IMAGE_URL_SMALL","https://res.cloudinary.com/flss/image/upload/v");

if (@$_SERVER['HTTP_HOST'] == 'localhost') 
{
$usercon = 'root';
$passcon = '';
$connection = mysql_connect("localhost", $usercon , $passcon) or die ("Coudn't connect to the server");
mysql_select_db("flss", $connection) or die("coudn't connect to the database");
define("BASE_URL","http://localhost/flss_fbit/svn/FLSS/");  
}
else if ((@$_SERVER['HTTP_HOST'] == 'http://flss.eu1.frbit.net') || (@$_SERVER['HTTP_HOST'] == 'flss.eu1.frbit.net'))
{
$usercon = 'flss';
$passcon = 'NOHS2LCa5k90FGxY';
$connection = mysql_connect("flss.mysql.eu1.frbit.com", $usercon , $passcon) or die ("Coudn't connect to the server");
mysql_select_db("flss", $connection) or die("coudn't connect to the database");
define("BASE_URL","http://flss.eu1.frbit.net/svn/FLSS/");
}

include __DIR__.'../applicantsFunction.php';
include __DIR__.'../employersFunction.php';
include __DIR__.'../emailFunction.php';
include __DIR__.'../uploaderFunction.php';
include __DIR__.'../notifFunction.php';
include __DIR__.'../checkjob.php';
?>

